#%%% block 1
shopping_list = []
print(shopping_list)
#Output: []

#%%% block 2
shopping_list.append('牛奶')
shopping_list.append('面包')
print(shopping_list)
#Output: ['牛奶', '面包']

#%%% block 3
shopping_list.insert(1, '鸡蛋')
print(shopping_list)
#Output: ['牛奶', '鸡蛋', '面包']

#%%% block 4
second_item = shopping_list[1]
print(shopping_list[1])
#Output: 鸡蛋
    
#%%% block 5
shopping_list.remove('面包')
print(shopping_list)
#Output: ['牛奶', '鸡蛋']

#%%% block 6
has_apple = '苹果' in shopping_list
print(has_apple)
#Output: False

#%%% block 7
list_length = len(shopping_list)
print(list_length)
#Output: 2

#%%% block 8
shopping_list.sort()
print(shopping_list)
#Output: ['牛奶', '鸡蛋']

#%%% block 9
shopping_list.clear()
print(shopping_list)
#Output: []